import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import manifest from "./manifest.json";
import webExtension from "vite-plugin-web-extension";
import { viteStaticCopy } from 'vite-plugin-static-copy'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    svelte(),
    webExtension({
      browser: "chrome",
      disableAutoLaunch: true,
      additionalInputs: ['src/inject.js'],
      manifest:()=>manifest
    }),
    viteStaticCopy({
      targets: [
        {
          src: 'images/',
          dest: ''
        }
      ]
    })
  ],
})
